package com.red.mapper;

import com.red.pojo.entity.User;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface UserMapper {

    int addUser(User user);

    User selectUserByID(@Param("userId") int id);

    User selectUserByAccount(@Param("account") String account);

    List<User> selectUserList(@Param("user") User user, @Param("offset") int offset, @Param("size") int size);

    int selectUserCount(User user);

    int deleteUserByID(@Param("userId") int id);

    int updateUser(User user);


}
